const user = {
  namespaced: true,
  state () {
    return {
      userCount: 0
    }
  },
  mutations: {
    addUserMutaition (state, payload) {
      state.userCount += payload
    },
    increment (state, payload) {
      state.userCount -= payload
    }
  },
  actions: {
    addAction ({ commit, dispatch }, payload) {
      commit('addUserMutaition', payload)
    },
    increAction ({ commit }, payload) {
      commit('increment', payload)
    }
  },
  getters: {
    addGetters (state, getters, rootGetters) {
      return state.userCount * (getters.getters1)
    },
    getters1 (state, getters) {
      return state.userCount + 100
    }
  },
  modules: {}
}
export default user
